@extends('Admin.base')
@section('css')
    <link rel="stylesheet" href="/Admin/layuiadmin/css/extend/formSelects-v4.css" media="all">
@endsection
@section('content')
    <div class="layui-card">


        <div class="layui-card-header layuiadmin-card-header-auto">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>商品购买配置</legend>
            </fieldset>
        </div>
        <div class="layui-card-body">

            <form class="layui-form" id="layui-form" action="{{route('goods.buysetsave')}}" method="post" >
                <div class="layui-form-item layui-col-md6">
                    <div class="layui-input-block">
                        单件商品单次最大购买数量：
                        <input type="text" name="num" lay-verify="required|number"  class="layui-input" value="{{$num ?? ''}}">0表示不限
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        {{isset($num) ? method_field('PUT') : ''}}
                        {{csrf_field()}}
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="layui-form-submit">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
@section('script')
    <script src="/js/ajax.js"></script>
    <script>

    </script>
@endsection
